applicationwindow: Remove some useless queue_resize calls
authorTimm Bäder <mail@baedert.org>
Wed, 12 Jul 2017 06:14:15 +0000 (08:14 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:16 +0000 (21:27 -0400)
The gtk_widget_{set_parent,unparent} calls before will already cause a
resize when necessary.

gtk/gtkapplicationwindow.c

index daa66e3c7abfad914591088791d86f29c5475793..df4b27bd0b171f51de4af494f3028f9dd751fc2f 100644 (file)
@@ -252,8 +252,6 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window)
     {
       gtk_widget_unparent (window->priv->menubar);
       window->priv->menubar = NULL;
-
-      gtk_widget_queue_resize (GTK_WIDGET (window));
     }
 
   if (!have_menubar && should_have_menubar)
@@ -267,8 +265,6 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window)
       window->priv->menubar = gtk_menu_bar_new_from_model (G_MENU_MODEL (combined));
       gtk_widget_set_parent (window->priv->menubar, GTK_WIDGET (window));
       g_object_unref (combined);
-
-      gtk_widget_queue_resize (GTK_WIDGET (window));
     }
 }